package com.jubaopen.service;

import com.jubaopen.bean.Ratio;
import com.jubaopen.dao.RatioDAO;

public class RatioService {

	private RatioDAO ratioDAO;

	public void setRatioDAO(RatioDAO ratioDAO) {
		this.ratioDAO = ratioDAO;
	}
	
	public int add(Ratio ratio){		
	
		return ratioDAO.add(ratio);	
	}
	
	public int update(Ratio ratio)  {
		return ratioDAO.update(ratio);
	}
	
	public Ratio getRatioByMobile (String mobile){
		return ratioDAO.getRatioByMobile(mobile);
	}
	
	public Ratio getRatioByUserId (int userId){
		return ratioDAO.getRatioByUserId(userId);
	}
	
}
